<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/taglib/jstl.jsp" %>
		
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<!-- <meta http-equiv="X-UA-Compatible" content="IE=5" /> -->
		<!-- <meta http-equiv="X-UA-Compatible" content="IE=7" /> -->
		<!-- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> -->
		<!-- <meta http-equiv="X-UA-Compatible" content="IE=8" /> -->
		<!-- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> -->
		
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Expires" content="-1" /> 
		<meta http-equiv="Pragma" content="no-cache" /> 
		<meta http-equiv="Cache-Control" content="No-Cache" />
		
		<link type="icon" rel="icon" href="/resources/images/common/favicon.ico" />
		<link type="text/css" rel="stylesheet" media="all" href="/resources/css/common/default.css" />
		<link type="text/css" rel="stylesheet" media="all" href="/resources/css/views/template/auth/auth.css" />
		
		<!-- jQuery Core -->
		<script type="text/javascript" src="/resources/js/jquery/core/jquery-1.10.2.min.js"></script>
	</head>

	<body>
		<div class="errorRed">
		<c:choose>
			<c:when test="${not empty error}">
				Your login attempt was not successful, try again.<br /> Caused :
				${error}
				<!-- $ {sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} -->
			</c:when>
			
			<c:otherwise></c:otherwise>
		</c:choose>
		</div>
		<div>
			<form id="frmLogin" name="frmLogin" action="/j_spring_security_check" method="post">
				<table>
					<tr><td>User:</td><td><input type="text" id="username" /></td></tr>
					<tr><td>Password:</td><td><input type="password" id="password" /></td></tr>
					<tr><td colspan='2'><input type="button" id="loginBtn" value="Login"/></td></tr>
				 </table>
			</form>
		</div>

		<jsp:include page="/WEB-INF/layouts/inc/includeJS.jsp" />
		<script type="text/javascript" src="/resources/js/views/template/auth/loginFormValid.js"></script>
		<script type="text/javascript" src="/resources/js/views/template/auth/login.js"></script>
	</body>
</html>
